//
// Created by user on 2022/2/24.
//
#include <unordered_map>
using namespace std;
bool isAnagram(string s, string t) {
    if (s.length() != t.length()) return false;
    vector<int> map(26);
    for (char c : s) map[c - 'a']++;
    for (char c : t){
        if (map[c - 'a'] <= 0) return false;
        map[c - 'a']--;
    }
    return true;

}